package service;

import mapper.PatientMapper;
import model.dto.PatientDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @className: service.PatientServiceImpl
 * @author: Xia
 * @create: 2023-03-16 15:04
 */
@Service
public class PatientServiceImpl implements PatientService{
    @Autowired
    private PatientMapper mapper;


    @Override
    public PatientDto getPatientByIdCard(String idCard) {
        return mapper.getPatientByIdCard(idCard);
    }

    @Override
    public PatientDto getPatientByIdMedicare(String idMedicare) {
        return mapper.getPatientByIdMedicare(idMedicare);
    }
}
